#pragma once
#ifndef __CONFIG_H__
#define __CONFIG_H__

	//------------------------------------------------------------------------
	class Config
	//------------------------------------------------------------------------
	{
	public:
		Config();
		~Config();

		/// Opens configuration file
		virtual bool open( const TCHAR * path );
		/// Saves the configuration
		virtual bool save();

	public:
		/// Reads string value
		virtual TCHAR * readString( const TCHAR * name, TCHAR * v);
		/// Reads boolean value
		virtual bool readBool( const TCHAR * name, bool v );
		/// Reads signed integer value
		virtual int readInt( const TCHAR * name, int v );

		/// Writes string value
		virtual bool writeString( const TCHAR * name, TCHAR * v);
		/// Writes boolean value
		virtual bool writeBool( const TCHAR * name, bool v );
		/// Writes signed integer value
		virtual bool writeInt( const TCHAR * name, int v );

	private:
		TCHAR * m_path;
	};

#endif // __CONFIG_H__